﻿@model BlackBox.Controllers.HomeController.EntryViewModel
@{
    ViewBag.Title = "Home";
}
<div id="main-page">
    <div id="welcome">
        <h3>Welcome to Board Games</h3>
        <p>
            Welcome to the website Board Games where all you boardgame needs are met, we have a 
            wide selection of games you can dive into whether you get your fix from thrilling 1v1 action
            or if you want to play as a part of a team you can fin what you want under our Play Game tab
        </p>
    </div>
    <div id="news-table">
        <h3>News</h3>
        <table> 
            @Html.Partial("_newsPartialView", @Model.News)
        </table>
        <a href="/Home/News">See all news</a>
    </div>
    <div id="game-lists">
        <!-- <div class="game">
            <h6>Your Games</h6>
            <ul>
                <li>Game1</li>
                <li>Game2</li>
            </ul>
        </div> -->

        <div class="game">
            <h6>Open Games</h6>
            <ul>
                @Html.Partial("_activegamePartialView", @Model.ActiveGame)
            </ul>
        </div>

        <div class="game">
            <h6>Recent Games</h6>
            <ul>
                @Html.Partial("_gamePartialView", @Model.Game)
            </ul>
        </div>
    </div>
</div>